<template>
    <text @click="callPhone">{{value}}</text>
</template>

<script>
    export default {
        name: "phone-num",
        props: {
            value: {
                type: String,
                default: ''
            }
        },
        methods: {
            callPhone() {
                uni.makePhoneCall({
                    phoneNumber: this.value
                });
            }
        }
    }
</script>

<style scoped>

</style>
